package unipampa.extensions.games.pampaPife;


import com.smartfoxserver.v2.entities.User;
import com.smartfoxserver.v2.entities.data.ISFSObject;
import com.smartfoxserver.v2.extensions.BaseClientRequestHandler;

public class TratarCompraDoDescarte extends BaseClientRequestHandler{

	public void handleClientRequest(User usuario, ISFSObject params){
		PampaPifeExtension gameExt = (PampaPifeExtension) getParentExtension();
		Carta c = gameExt.cartaTopoDescarte;
		gameExt.baralho.atualizaDono(c, usuario.getId());
		trace("Recebido compra do descarte.");
	}
}